package functional;

import java.util.function.Supplier;

/**
 * Author:ZouHeng
 * Description:
 * Date:2021-07-02  17:16
 **/
public class SupplierDemo {
    public String getString(Supplier<String> supplier) {
        return supplier.get();
    }

    public int getMax(Supplier<Integer> supplier) {
        return supplier.get();
    }
}
